<!DOCTYPE html>
<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
<%@include file="headScript.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/ga/acm1104script.js"></script>  
</head>
<body>
	<div class="wrapper">
		<!-- BEGIN Top-Bar -->
		<%@ include file="../fragments/header.jsp"%>
		<!-- END Top-Bar -->

		<div id="detail-area" class="clearfix">
			<!-- BEGIN SIDEMENU -->
			<div class="hidden-xs hidden-sm page-sidebar" id="side-menu-bar">
				<ul class="page-sidebar-menu">					
		<li class="info">
			<div class="clearfix">
				<div><strong>ยินดีต้อนรับ</strong></div>
				<div><i class="fa fa-user"></i> Admin </div>
				<div class="mt-10"><strong>คุณเข้าระบบครั้งล่าสุดเมื่อ</strong></div>
				<div class="mb-10"><i class="fa fa-clock-o"></i> 13 / 01 / 2558 14:00:00</div>
			</div>
		</li>
		<li class="active"><a href="javascript:void(0)" ><i class="fa fa-briefcase"></i> Agent Management <span class="arrow"></span></a>
			<ul class="sub-menu">
				<li class="active"><a href="javascript:void(0)" ><i class="fa fa-folder"></i> GA : General Agent <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM1101.jsp"><i class="fa fa-coffee"></i> AG </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM11021.jsp"><i class="fa fa-coffee"></i> AL </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM1103.jsp"><i class="fa fa-coffee"></i> AVP </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM1104.jsp" class="active"><i class="fa fa-coffee"></i> VP </a></li>
					</ul>
				</li>
				<li><a href="javascript:void(0)" ><i class="fa fa-folder"></i> SFC <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM1201.jsp"><i class="fa fa-coffee"></i> AG : Financing Allowance </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM1202.jsp"><i class="fa fa-coffee"></i> AG : Recruiting Award </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM1203.jsp"><i class="fa fa-coffee"></i> MM : Incentive </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM1204.jsp"><i class="fa fa-coffee"></i> O/E : Operation Expense </a></li>
					</ul>
				</li>
				<li><a href="javascript:void(0)" ><i class="fa fa-folder"></i> Summary <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM1301.jsp"><i class="fa fa-coffee"></i> GA - AG </a></li>
					</ul>
				</li>
			</ul>
		</li>
		<li><a href="javascript:void(0)"><i class="fa fa-briefcase"></i> Data Management <span class="arrow"></span></a>
			<ul class="sub-menu">
				<li><a href="javascript:void(0)"><i class="fa fa-folder"></i> SFC <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM2101.jsp"><i class="fa fa-coffee"></i> SFC Agent Structure </a></li>
					</ul>
				</li>
				<li><a href="javascript:void(0)"><i class="fa fa-folder"></i> Modify Data <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM2201.jsp"><i class="fa fa-coffee"></i> SFC Agent Structure </a></li>
					</ul>
				</li>
			</ul>
		</li>
		<li><a href="javascript:void(0)" ><i class="fa fa-briefcase"></i> Formula Management <span class="arrow"></span></a>
			<ul class="sub-menu">
				<li><a href="javascript:void(0)" ><i class="fa fa-folder"></i> SFC <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM3101.jsp"><i class="fa fa-coffee"></i> Recruiting Award Management </a></li>
					</ul>
				</li>
				<li><a href="javascript:void(0)" ><i class="fa fa-folder"></i> Adjustment <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM5101.jsp"><i class="fa fa-coffee"></i> Adjustment </a></li>
					</ul>
				</li>
			</ul>
		</li>
		<li><a href="javascript:void(0)" ><i class="fa fa-briefcase"></i> Report Management <span class="arrow"></span></a>
			<ul class="sub-menu">
				<li><a href="javascript:void(0)" ><i class="fa fa-folder"></i> Demo Report <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM4101.jsp"><i class="fa fa-coffee"></i> Report 1 </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM4102.jsp"><i class="fa fa-coffee"></i> Report 2 </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM4103.jsp"><i class="fa fa-coffee"></i> Report 3 </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM4104.jsp"><i class="fa fa-coffee"></i> Report 4 </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM4105.jsp"><i class="fa fa-coffee"></i> Report 5 </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM4106.jsp"><i class="fa fa-coffee"></i> Report 6 </a></li>
					</ul>
				</li>
			</ul>
		</li>
		<li><a href="javascript:void(0)" ><i class="fa fa-briefcase"></i> Financial Management <span class="arrow"></span></a>
			<ul class="sub-menu">
				<li><a href="javascript:void(0)" ><i class="fa fa-folder"></i> Finance <span class="arrow"></span></a>
					<ul class="sub-menu">
						<li><a href="${pageContext.request.contextPath}/content/ACM5102.jsp"><i class="fa fa-coffee"></i> Adjustment </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM5201.jsp"><i class="fa fa-coffee"></i> Tax Calculation </a></li>
						<li><a href="${pageContext.request.contextPath}/content/ACM5202.jsp"><i class="fa fa-coffee"></i> Tax Reduction </a></li>
					</ul>
				</li>
			</ul>
		</li>
		<li><a href="javascript:void()"><i class="fa fa-sign-out"></i> ออกจากระบบ </a></li>
				</ul>
			</div>
			
			<!-- End Side Menu -->

			<div class="col-sm-12 col-xs-12" id="right-side">
				<div id="navigator-bar">
					<i class="fa fa-home"></i> หน้าหลัก <i class="fa fa-angle-right ml-5 mr-5"></i> GA : VP
				</div>
				<!--End navigator-bar-->			

				<!-- Start detail-area -->				
				<div class="form-list clearfix" style="margin-top:-30px; margin-bottom:-75px;">
					<div class="search-box no-radius">
						<!-- header -->
						<div class="form-group clearfix search-header no-radius">
							<div class="pull-left">ค้นหา VP</div>
							<div class="pull-right"><div id="hide-button"><i class="fa fa-chevron-circle-up"></i></div></div>
						</div>
					  	<!-- BOX-BODY -->
					  	<div id="box-body">
							<div class="form-group clearfix mt-20">
								<div class="col-sm-1"></div>
								<div class="pull-left mt-3" style="width:200px">
									<label>รหัสพนักงาน</label>
									<input type="text" id="inputPeNo" name="inputPeNo" class="form-control" placeholder="รหัสพนักงาน">
									
								</div>
								<div class="col-sm-1"></div>
								<div class="pull-left mt-3" style="width:200px">
								<label>ประเภทการคำนวณ</label>
								<label class='radio-inline'><input type='radio'  id='type1' name='type1' value='quarter' checked>Quarter</label>
								<label class='radio-inline'><input type='radio' id='type2' name='type1' value='annual'>Annual</label>
								</div>
								<div class="col-sm-1"></div>
								<div class="pull-left mt-3" style="width:300px">
								<label id="labelQY">เลือกไตรมาส/ปี</label>
								<div id="divSelection">
									<select id='inputQuarter' name='quarterly' >
											<option value=''>-เลือกไตรมาส-</option>
											<option value='1'> 1 </option>
											<option value='2'> 2 </option>
											<option value='3'> 3 </option>
											<option value='4'> 4 </option>
									</select>
									&nbsp;&nbsp;
									<select class='input-small' id='inputYear' name='year'>
										<option value=''>-เลือกปี-</option>
										<option value='2013'> 2556 </option>
										<option value='2014'> 2557 </option>
									</select>
								</div>
								</div>
							</div>
				  		</div>
							<!-- footer -->
							<div class="form-group mt-20 clearfix search-footer no-radius">
								<div class="col-sm-12 text-center">
						 			<button type="button" class="btn btn-primary" onclick="searchData();"><i class="fa fa-search"></i> ค้นหา </button>
									<button type="button" class="btn btn-primary" onclick="window.location.reload();"><i class="fa fa-refresh"></i> เริ่มใหม่ </button>
								</div>
					  		</div>					  
					 	<!-- END BOX-BODY -->
					</div>
				</div>
				
				<div class="modal fade" id="detailCalModal" tabindex="-1" role="dialog" aria-labelledby="confirmModal" aria-hidden="true">
				    <div class="modal-dialog" style="width:800px">
				        <div class="modal-content">
				            <div class="modal-header">
				            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				            <h4 class="modal-title">แสดงรายละเอียดผลงานของ VP </h4>
				            </div>
				            <div class="modal-body">
				            	<span id="modal_content_detail"></span>
				            </div>
				            <div class="modal-footer">
				                <button type="submit" class="btn btn-primary" data-dismiss="modal"><i class="fa fa-times"></i> ปิดรายละเอียด </button>
				        	</div>
				    	</div>
				  	</div>
				</div>
				<div class="form-list" style="padding:0px">
					<div class="form-list" id="form-list" >
						<form role="form" name="form" action="../ACM1104Srvl" method="POST">
							<div class="list-detail-area">						
								<table id="raDataTable" class="stripe hover cell-border" cellspacing="0" width="100%" align="center">
		        					<thead>
		            					<tr style="background-color: #132167; color:white; font-size: 0.9em; ">
											<th style="border-right: 1px solid #999; text-align: center;">No</th>
											<th style="border-right: 1px solid #999; text-align: center;">Agent No.</th>
											<th style="border-right: 1px solid #999; text-align: center;">Full Name</th>
											<th style="border-right: 1px solid #999; text-align: center;">PC</th>
											<th style="border-right: 1px solid #999; text-align: center;">Bonus</th>
											<th style="border-right: 1px solid #999; text-align: center;">View</th>
		            					</tr>
		        					</thead> 				
		    					</table>
							</div>
						</form>
					</div>
					<!-- list-detail-area-->	
				</div>
				
				<form id="myForm" action="../ACM1104Srvl" method="post">
				<input type="hidden" id="inputProcessType"  name="process_type" value="showData">
				<input type="hidden" id="inputAgentNumber"  name="agent_number" value="">
				<input type="hidden" id="inputCalculationType"  name="calculation_type" value="">
				<input type="hidden" id="inputQuarterly"  name="quarterly" value="">
				<input type="hidden" id="inputYears"  name="year" value="">
				
				</form>
				
				
				
				
				
				
			<div id="footer-detail">Copyright © สงวนลิขสิทธิ์ พ.ศ.2558 โดยบริษัท เอสแคป โซลูชั่นส์ จำกัด</div>
		</div>
	</div>
</div>
</body>
</html>